package com.zyh.Controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.print.attribute.standard.PresentationDirection;
import java.util.Arrays;

@Controller
public class HelloController {


    @RequestMapping("/hello")
    public String Hello(Model model)
    {
        model.addAttribute("msg","<h1>helloh1a12d<h1>");
       model.addAttribute("users", Arrays.asList("zyh","niubi"));
        return "hello";
    }




}
